package Lesson;

public class Demo02StringTest {
    public static void main(String[] args) {
        //public String()//空参
        String s = new String();

        //public String(char[] chs)//字符串数组
        char[] chs = {'a','b','c'};
        String s2 = new String(chs);

        System.out.println(s2);

        //public String(String original)//有参构造，括号内为字符串内容
        String s3 = new String("123");
        System.out.println(s3);


        //String s = "abc"直接赋值


    }
}
